//
//  DataBaseSingleton.h
//  UI_豆瓣2.0
//
//  Created by dllo on 15/11/7.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MovieList.h"
#import "User.h"
#import "MovieDetail.h"

@interface DataBaseSingleton : NSObject

+ (instancetype)shareDataBase;

-(void)openDB;
#pragma mark -- 电影
-(void)insertMovie:(MovieList *)movie;
-(void)deleteMovieId:(NSString *)movieId;
-(NSMutableArray *)selectMovie;
-(NSMutableArray *)selectMovieName:(NSString *)movieName;
#pragma mark -- 用户
-(void)insertUser:(User *)user;
-(NSMutableArray *)selectUserName:(NSString *)userName;
#pragma mark -- 收藏
-(void)inserUserName:(NSString *)userName Title:(NSString *)title;
-(void)deleteUserName:(NSString *)userName Title:(NSString *)title;
-(NSMutableArray *)selectCollectUserName:(NSString *)userName;

@end
